package com.evil.application.pojo.dto.form.control.code;

import com.evil.application.pojo.entity.ApplicationFormControl;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 评分-表单控件实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class RateControlDTO extends ControlDTO {

    public static final String[] ignoreProperties = new String[]{};

    /**
     * 允许半选(0:否, 1:是)
     */
    private Integer halfSelected;
    /**
     * 是否显示分数(0:否, 1:是)
     */
    private Integer showScore;
    /**
     * 最小值
     */
    private BigDecimal minDecimal;
    /**
     * 最大值
     */
    private BigDecimal maxDecimal;

    public RateControlDTO(ApplicationFormControl applicationFormControl) {
        super(applicationFormControl, ignoreProperties);
    }
}
